package com.mdd.common.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("状态更新")
public class StatusValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "ID", required = true)
    private Long id;

    @NotNull(message = "status参数必传")
    @ApiModelProperty(value = "status", required = true)
    private Integer status;

}
